<?php

/**
 * Project form.
 *
 * @package    form
 * @subpackage Project
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
 */
class ProjectForm extends BaseProjectForm
{
    public function configure()
    {
        unset($this['created_at']);
        unset($this['updated_at']);
		
		$this->validatorSchema['name'] = new sfValidatorString(array('max_length' => 25, 'min_length' => 3));
		$this->widgetSchema['owner_id'] = new sfWidgetFormDoctrineSelect(array('model' => 'User'));
		$this->validatorSchema['owner_id'] = new sfValidatorDoctrineChoice(array('model' => 'User'));
		
		$this->widgetSchema->setLabels(array(
			'owner_id'    => 'Owner'
		));
    }
}
